package cn.com.shopec.erp.product.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

/**
 * 
 * @ClassName: ProdSupplier
 * @Description: 供应商与货品表的关系表
 * @author: duhui
 * @date 2013-5-29 下午03:43:02
 * 
 */
@Entity
@Table(name = "TBL_PROD_SUPPLIER")
public class ProdSupplier implements Serializable {

    /** id **/
    private String id;

    /** 供应商编号 **/
    private String supplierNo;

    /** 货品编号 **/
    private String prodNo;

    /** 未税成本价 **/
    private Double untaxCostPrice;

    /** 含税成本价 **/
    private Double taxCostPrice;

    /** 毛利率 **/
    private Double grossMargin;

    /** 是否可退货 **/
    private Integer isReturnedGoos;

    /** 删除标志 **/
    private Integer deleteFlag;
    
    /** 是否供应商发货 0:否 1:是 **/
    private Integer isSupDelivery;

    public ProdSupplier() {
        super();
    }

    public ProdSupplier(String id) {
        super();
        this.id = id;
    }

    @GenericGenerator(name = "generator", strategy = "uuid.hex")
    @Id
    @GeneratedValue(generator = "generator")
    @Column(name = "ID", unique = true, nullable = false, length = 32)
    public String getId() {
        return this.id;
    }

    public void setId(String id) {
        this.id = id;
    }

    @Column(name = "SUPPLIER_NO")
    public String getSupplierNo() {
        return this.supplierNo;
    }

    public void setSupplierNo(String supplierNo) {
        this.supplierNo = supplierNo;
    }

    @Column(name = "PROD_NO")
    public String getProdNo() {
        return this.prodNo;
    }

    public void setProdNo(String prodNo) {
        this.prodNo = prodNo;
    }

    @Column(name = "UNTAX_COST_PRICE")
    public Double getUntaxCostPrice() {
        return this.untaxCostPrice;
    }

    public void setUntaxCostPrice(Double untaxCostPrice) {
        this.untaxCostPrice = untaxCostPrice;
    }

    @Column(name = "TAX_COST_PRICE")
    public Double getTaxCostPrice() {
        return this.taxCostPrice;
    }

    public void setTaxCostPrice(Double taxCostPrice) {
        this.taxCostPrice = taxCostPrice;
    }

    @Column(name = "GROSS_MARGIN")
    public Double getGrossMargin() {
        return this.grossMargin;
    }

    public void setGrossMargin(Double grossMargin) {
        this.grossMargin = grossMargin;
    }

    @Column(name = "IS_RETURNED_GOODS")
    public Integer getIsReturnedGoos() {
        return this.isReturnedGoos;
    }

    public void setIsReturnedGoos(Integer isReturnedGoos) {
        this.isReturnedGoos = isReturnedGoos;
    }

    @Column(name = "DELETE_FLAG")
    public Integer getDeleteFlag() {
        return this.deleteFlag;
    }

    public void setDeleteFlag(Integer deleteFlag) {
        this.deleteFlag = deleteFlag;
    }

    @Column(name = "IS_SUP_DELIVERY")
	public Integer getIsSupDelivery() {
		return isSupDelivery;
	}

	public void setIsSupDelivery(Integer isSupDelivery) {
		this.isSupDelivery = isSupDelivery;
	}

    
}
